package models

import (
	"time"
)

// MaEventQuestion [...]
type MaEventQuestion struct {
	ID        string    `gorm:"autoIncrement:true;primaryKey;column:id;type:int;not null"  json:"id" json_old:"ID"`
	EventType string    `gorm:"column:event_type;type:varchar(30);not null;comment:事件类型的含义"  json:"event_type" json_old:"EventType"`
	AddTime   time.Time `gorm:"column:add_time;type:datetime;not null;comment:添加时间"  json:"add_time" json_old:"AddTime"`
	Content   string    `gorm:"column:content;type:varchar(255);not null"  json:"content" json_old:"Content"`
	CreatedAt int64     `gorm:"column:created_at;autoCreateTime;type:int;size:64;comment:创建时间" json:"created_at"`
}

// TableName get sql table name.获取数据库表名
func (m MaEventQuestion) TableName() string {
	return "ma_event_question"
}

// 模式自动注册
func init() {
	Models = append(Models, &MaEventQuestion{})
}
